<?PHP

include("dbconnect.php");

//Convert field values to variables
$UserName = $_POST['UserName'];
$Password = md5($_POST['Password']);
$FName = $_POST['FName'];
$LName = $_POST['LName'];
$Email = $_POST['Email'];

$query = "INSERT INTO Users VALUES ('$UserName', '$FName', '$LName', '$Password', '$Email')";
mssql_query($query) or die("Failed to insert new user !");
//header('Location:newUser.php');

?>